package au.edu.qut.bpm.genbinder.models;

import java.util.ArrayList;
import java.util.HashMap;

public class Binding {

	public String id;
	public ArrayList<String> resources;
	public HashMap<String, Activity> activities;
	
	public Binding () {
		id = new String();
		resources = new ArrayList<String>();
		activities = new HashMap<String, Activity>();
	}
	
	public String getId () {
		return id;
	}
	
	public ArrayList<String> getAllResources () {
		return resources;
	}
	
	@SuppressWarnings("rawtypes")
	public HashMap getAllActivities () {
		return activities;
	}
	
	public String getResourceByID (String resourceID) {
		return null; //TODO EDIT
	}
	
	public Activity getActivityByID (String activityID) {
		Activity a = activities.get(activityID);
		return a;
	}
	
	public void setId (String id) {
		this.id = id;
	}
	
	public void addResource (String resourceID) {
		resources.add(resourceID);
	}
	
	public void addActivity (String activityID, Activity activity) {
		activities.put(activityID, activity);
	}

	
}
